package map.coreui.fragment.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.baidu.mapapi.search.sug.SuggestionResult
import com.zjw.zy.R
import com.zjw.zy.base.BaseRecyclerAdapter
import map.bean.SuggestInfoWrap
import map.coreui.fragment.holder.SuggestSearchHolder

/**
 * @author     ：zhong.jw
 * @date       ：Created in 2022/10/25 10:26
 * @description：
 */
class SuggestSearchAdapter(listener: ItemListener<SuggestSearchHolder>) :
    BaseRecyclerAdapter<SuggestInfoWrap,
            SuggestSearchHolder>(listener) {

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SuggestSearchHolder {
        val item = LayoutInflater.from(parent.context)
            .inflate(R.layout.holder_suggest_search_item, parent, false)

        return SuggestSearchHolder(item)
    }
}